package com.quartz.springbootquartz.web;

import java.util.HashMap;
import java.util.Map;

/**
 * @description 返回参数工具类
 * @Author longdeng
 * @Date 2020/7/27 0027 23:05
 */
public class ResultMapUtil {

    /**
     * 返回成功标识Map
     *
     * @return {@link Map}
     */
    public static Map<String, Object> success() {
        Map<String, Object> map = new HashMap<>();
        map.put("code", "200");
        return map;
    }


    /**
     * 返回失败标识Map
     *
     * @return {@link Map}
     */
    public static Map<String, Object> error() {
        Map<String, Object> map = new HashMap<>();
        map.put("code", "400");
        return map;
    }

}
